package com.ny.dto;

import lombok.Data;
import javax.validation.constraints.NotNull;
import javax.validation.groups.Default;
import java.util.Date;
import javax.validation.constraints.NotBlank;
import io.swagger.annotations.ApiModelProperty;

/**
 * 器材维护管理DTO
 *
 * @author MSI-NB
 * @date 2025-03-08 13:14:38
 */
@Data
public class EquipmentMaintenanceDTO {

    /**
     * 维护记录ID:维护记录ID，必填
     */
    @NotNull(groups = { DeleteGroup.class, UpdateGroup.class, Default.class }, message = "维护记录ID不能为空")
    @ApiModelProperty(value = "维护记录ID:维护记录ID，必填")
    private Integer maintenanceId;

    /**
     * 器材ID:器材ID，必填
     */
    @NotNull(groups = { CreateGroup.class, UpdateGroup.class, Default.class }, message = "器材ID不能为空")
    @ApiModelProperty(value = "器材ID:器材ID，必填")
    private Integer equipmentId;

    /**
     * 维护描述:维护描述，必填
     */
    @NotBlank(groups = { CreateGroup.class, Default.class }, message = "维护描述不能为空")
    @ApiModelProperty(value = "维护描述:维护描述，必填")
    private String maintenanceDescription;

    /**
     * 维护日期:维护日期，必填
     */
    @NotNull(groups = { CreateGroup.class, UpdateGroup.class, Default.class }, message = "维护日期不能为空")
    @ApiModelProperty(value = "维护日期:维护日期，必填")
    private java.util.Date maintenanceDate;
}
